package com.anc.platform.model.platform.controller;


import com.anc.platform.model.platform.entity.SysMenu;
import com.anc.platform.model.platform.service.ISysMenuService;
import com.anc.web.annotions.WebController;
import model.Response;
import model.ResponseFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 菜单表 前端控制器
 * </p>
 *
 * @author Anc
 * @since 2022-07-07
 */
@WebController
@RequestMapping("/platform/sys-menu")
public class SysMenuController {
    @Autowired
    private ISysMenuService service;
    @GetMapping("/selectLeftMenu")
    public Response<List<SysMenu>> getAllMenu() {
        return ResponseFactory.buildSuccessResponse(service.getAllMenuInfo());
    }
}

